################################################################################### 
## 
## Hack Titel:      Neues Feld in Profil einfgen
## Hack Version:    1.2.1
## optionaler Teil: Eingabe in neues Feld erzwingen 1.0.1
## Author           Acid
## Support:	    http://www.phpbbhacks.com/forums oder http://www.phpbb.de/
##
## Beschreibung:   Wenn das man etwas in das neue Feld eintragen muss..
##		   Wenn man mehr als ein neues Feld hinzugefgt hast, musst man die
##		   folgenden Schritte duplizieren und dabei jeweils "music" ndern
##		   (auf Schreibweise achten).
##
## Bentigt:       addfield_german.txt
##
## Dateien zu ndern:     2
##			  includes/usercp_register.php
##                        templates/xxx/profile_add_body.tpl
##
################################################################################### 
## 
## Installationsnotiz: 
## Vor jeglichen nderungen an Dateien oder Datenbank, solltest Du diese vorher
## sichern.
## 
################################################################################### 
##
## Versionen:
##
## 1.0.1   - Kontrolle auch bei Profilnderung
## 1.0     - optionalen Teil hinzugefgt
##
################################################################################### 
# 
#-----[ FFNEN ]------------------------------------------
#  
# includes/usercp_register.php
# 
#-----[ FINDE ]---------------------------------------------------
# 
	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $music, $signature);

# 
#-----[ LSCHEN  ]---------------------------------------------------
# 
, $music

# 
#-----[ FINDE (achte auf die 3 Klammern) ]---------------------------------------------------
# 
				$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
			}
		}
	}

# 
#-----[ DARUNTER EINFGEN ]---------------------------------------------------
# 
# wenn Kontrolle nur bei Registrierung stattfinden soll,
# muss man "$mode == 'editprofile' ||" lschen

	if ( $mode == 'editprofile' || $mode == 'register' )
	{
		// if dropdown use (delete // before the next line)
		// if ( $music == $lang['Music_choice']['0'] )
		// and uncomment the next line (add // before)
		if ( empty($music) )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
		}
	}

# 
#-----[ LSCHEN (2x) ]---------------------------------------------------
#
# nur wenn man ein Dropdown Men eingestellt hat

               		$music = ($music == $lang['Music_choice']['0']) ? '' : $music;



# 
#-----[ FFNEN ]------------------------------------------
#  
# templates/xxx/profile_add_body.tpl
# 
#-----[ FINDE und SETZE ein * dahinter ]---------------------------------------------------
# 
{L_MUSIC}:


################################################################################### 
################################################################################### 
###################################################################################